# num = int(num)
# num = input(num)
#
# if num <10:
#      print(num)
from more_itertools.more import lstrip, rstrip

# score = int(input("请输入分数:"))
# if score <60:
#     grade = "不及格"
# elif score < 80:
#     grade = "及格"
# elif score < 90:
#     grade = "良好"
# elif score < 100:
#     grade = "优秀"
# else:
#     grade ="分数错误,请重新输入"
# print(f"分数是{score},等级是{grade}")
#
# age = int(input("年龄:"))
# if age < 0:
#     a = "年龄错误，请重新输入"
# elif age <= 5:
#     a = "婴幼儿"
# elif age >= 6 and age <= 11:
#     a = "儿童"
# elif age >=12 and age <= 17:
#     a = "青少年"
# elif age >=18 and age <= 59:
#     a = "成年人"
# elif age > 60:
#     a = "老年人"
# else:
#     a ="错误,请重新输入"
# print(f"年龄是{age},类型是{a}")



# num=0
# for i in range(1,101):
#     num+=i
#     i+=1
# print(num)



# num=0
# for i in range(1,101):
#     if i % 2 ==0:
#         num+=i
#     i+=1
# print(num)



# num=0
# for i in range(1,101):
#     if i % 2 != 0:
#         num+=i
#     i+=1
# print(num)

# num = 1
# while num <= 10:
#     print(num)
#     num += 1


# for i in range(1, 21):
#     if i % 2 == 0:
#         print(i)



# for i in range(5):
#     print("Hello!")

# i = 1
# while i <= 10:
#     print(i)
#     i = i + 1



# a = "I'm Tom"
# print(a)


# b = 'Tom said:"i\'m Tom"'
# print(b)


# d = '''Tom said:"i'm Tom"'''
# print(d)


# str1 = "Helto world"
# print(str1)
#
# # print(str1[0:3])
# print(str1[3:7])


# str2 = "1234567890"
# print(str2[::-1])

#
# name = "菜某坤"
# L = "两年半"
# C = "及你太美"
# print(f"{name}:\n[练习时长:{L}]\n[成名曲：{C}]")


# s = "1234456789"
# print(len(s))
#
# x = "qwertyuiopasdfghjklzxcvbnmmmm"
# print(x.find("Q"))

# s = 'i love python and python is great'



# print(s.replace("python",'jaya',1))
# print('a,b,c'.split(','))
# print('a,b,c'.split(',',1))
# print('hello\nworld'.split(',',1))
# print('hello\nworld'.splitlines())
# print('hello'.capitalize())
# print('hello'.upper())
# print('hello'.lower())
# print('good morning'.title())
# print('monday'.ljust(10,'+'))
# print('monday'.rjust(10,'-'))
# print('wedenesday'.center(20, '*'))


# s = "        apple            "
# print(s.strip())
# lstrip()
# rstrip()


# lst = ['a','b','c']
# result = '-'.join(lst)
# print(result)


